<?php
include $this->Render('header.php');
?>
<link rel="stylesheet" type="text/css" href="<?php echo BASE_STYLE;?>/css/admin.css" />
<script type="text/javascript" src="<?php echo BASE_STYLE;?>/js/dyhl.linkpage.js"></script>
<script type="text/javascript" src="<?php echo BASE_STYLE;?>/js/common.js"></script>
<script type="text/javascript" src="<?php echo BASE_STYLE;?>/uploadifive/jquery.uploadifive.js"></script>

<style type="text/css">
.line-bot {
	border:1px solid #a8a8a8;
}

.order-item-box {
	width:100%;
	height:auto;
	overflow:hidden;
	border-bottom:1px solid #a8a8a8;
	padding-bottom:15px;
	margin-bottom:15px;
}

.order-item-box input[type="text"],.order-item-box select {
	background:none;
}

p{margin:0;padding:0}
body,textarea,span{font:12px/1.5 微软雅黑,arial,sans-serif;}
a{color:#333;text-decoration:none;}
a:hover{color:#f60;text-decoration:underline;}
a:hover em,a:hover i,a:hover span{cursor:pointer;}
/*** guide ***/
.guide{width:60px;margin-left:587px;position:fixed;left:50%;bottom:134px;_position:absolute;_top:expression(documentElement.scrollTop+documentElement.clientHeight - this.clientHeight - 134+'px');display:block;}
.guide a{display:block;width:60px;height:50px;background:#C0C0C0 no-repeat;margin-top:10px;text-decoration:none;font:16px/50px "Microsoft YaHei";text-align:center;color:#fff;border-radius:2px;}
.guide a:hover{text-decoration:none;background-color:#39F;color:#fff;}
.guide .find{background-position:-84px -236px;}
#glideDiv0{position:fixed;top:60%;left:80.3%;bottom:0;}
</style>
<style type="text/css">
.admin-search-box {
	padding:15px;
}
</style>
<script type="text/javascript">
function MM_over(mmObj) {
    var mSubObj = mmObj.getElementsByTagName("div")[0];
    mSubObj.style.display = "block";
    mSubObj.style.backgroundColor = "#D8D8D8";
}
function MM_out(mmObj) {
    var mSubObj = mmObj.getElementsByTagName("div")[0];
    mSubObj.style.display = "none";
    
}
</script>
<script type="text/javascript" src="<?php echo BASE_STYLE;?>/js/order_ftoinfo.js"></script>
<!--S 公共顶部-->
<?php if(!empty($this->order['contractdetails']['sign_image'])){?>
<div id="glideDiv0">
<div style="position:relative;display:inline-block; float:left;margin-right:10px;">
            <img title='签字或盖章模板' data-original="<?php echo $this->order['contractdetails']['sign_image'];?>" class="example-image" src="<?php echo $this->order['contractdetails']['sign_img'];?>" width="80" height="80" />
            </div>
</div>
<?php }?>

<div class="guide">
    <div class="guide-wrap" onmouseover="MM_over(this)" onmouseout="MM_out(this)">
        <a href="#" class="find" title="审核标准"><span>审核标准</span></a><div style="width:210px;height:500px;display:none;left:0;top:15px;z-index:5;"><p><?php echo $this->order['contractdetails']['audit_details'];?></p></div>
        <a hidden><span>条款</span></a>
    </div>
</div>
<div class="guide">
  <div class="guide-wrap1" onmouseover="MM_over(this)" onmouseout="MM_out(this)">
    <a href="#" class="find" title="合同条款"><span>合同条款</span></a><div style="width:210px;height:500px;display:none;left:0;top:15px;z-index:5;"><p><?php echo $this->order['contractdetails']['contract'];?></p></div>
  </div>  
</div>

<div id="page-north">
    <?php
		include $this->Render('nav.php');
		include $this->Render('sub_nav.php');
	?>
    
</div>
<!--E 公共顶部 -->

<div class="daish-box" style="height:90%; overflow-y:scroll;overflow-x:hidden; box-sizing:border-box; padding: 15px 25px; width:auto; margin:0;">
<form action="/order/ftoaudit/option/save/" method="post" name="form1" class="J-ajaxForm" id="form1">
    <div class="daish-jbzl-box" style="border:0;">
    	<fieldset style="border:1px solid #a8a8a8; padding:10px 15px;">
        	<legend style="padding:5px 15px;"><h2>基本信息</h2></legend>
            <table width="100%" cellpadding="0" cellspacing="0" border="0">
                <tr>
                    <td width="280" height="30px"><em style="font-weight:bold;">客户编号：</em><?php echo $this->order['base']['o_number'];?></td>
                    <td width="328"><em style="font-weight:bold;">业务来源人：</em><?php echo $this->order['base']['o_uname'];?></td>
                </tr>
                <tr>
                    <td height="30px"><em style="font-weight:bold;">签约经销商：</em><?php echo $this->order['base']['o_buyer_type'];?></td>
                    <td><em style="font-weight:bold;">经销商：</em><?php echo $this->order['base']['o_buyer'];?></td>
                </tr>
            </table>
        </fieldset>
    </div>
    
    <div class="daish-jbzl-box" style="border:0;">
    	<fieldset style="border:1px solid #a8a8a8; padding:10px 15px;">
        	<legend style="padding:5px 15px;"><h2>购车人信息</h2></legend>
            
            <table width="100%" cellpadding="0" cellspacing="0" border="0">
                <tr>
                    <td width="33%" height="30px"><em style="font-weight:bold;">购车人姓名：</em><?php echo $this->order['base']['buyer']['ct_name'];?></td>
                    <td width="33%"><em style="font-weight:bold;">性别：</em><?php echo $this->order['base']['buyer']['ct_sex'];?></td>
                    <td><em style="font-weight:bold;">年龄：</em><?php echo $this->order['base']['buyer']['list_age'];?></td>
                </tr>
                <tr>
                    <td width="33%" height="30px"><em style="font-weight:bold;">身份证号：</em><?php echo $this->order['base']['buyer']['ct_code'];?></td>
                    <td width="33%"><em style="font-weight:bold;">身份证地址：</em><?php echo $this->order['base']['buyer']['ct_idaddress'];?></td>
                    <td><em style="font-weight:bold;">身份证归属地：</em><?php echo $this->order['base']['buyer']['ct_affiliation'];?></td>
                </tr>
                <tr>
                    <td width="33%" height="30px"><em style="font-weight:bold;">户籍：</em><?php echo $this->order['owner']['ot_residence_pro'];?><?php echo $this->order['owner']['ot_residence_city'];?><?php echo $this->order['owner']['ot_residence_area'];?></td>
                    <td width="33%"><em style="font-weight:bold;">学历：</em><?php echo $this->order['owner']['ot_edu'];?></td>
                    <td>
                        <em style="font-weight:bold;">手机号：</em><?php echo $this->order['owner']['ot_mobile'];?>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <em class="J-mobile-guishu"></em>
                    </td>
                </tr>
                
                <tr>
                    <td width="33%" height="30px"><em style="font-weight:bold;">婚否：</em><?php echo $this->order['owner']['ot_married'];?></td>
                    <td width="33%"><em style="font-weight:bold;">银行卡号：</em><?php echo $this->order['owner']['ot_bankcard'];?></td>
                    <td>
                        <em style="font-weight:bold;">邮寄地址：</em><?php echo $this->order['owner']['ot_liveadd'];?>
                    </td>
                </tr>
                <tr>
                    <td width="33%" height="30px"><em style="font-weight:bold;">固定电话：</em><?php echo $this->order['owner']['ot_tel'];?></td>
                    <td width="33%"><em style="font-weight:bold;">实际家庭地址：</em><?php echo $this->order['owner']['ot_home_add'];?></td>
                    <td>
                        <em style="font-weight:bold;">房产地址：</em><?php echo $this->order['owner']['ot_house_add'];?>
                    </td>
                </tr>
                
                <tr>
                    <td width="33%" height="30px"><em style="font-weight:bold;">房产所有权人：</em><?php echo $this->order['owner']['ot_house_owner'];?></td>
                    <td width="33%"><em style="font-weight:bold;">与购车人关系：</em><?php echo $this->order['owner']['ot_hown_relation'];?></td>
                    <td>
                        <em style="font-weight:bold;">房产性质：</em><?php echo $this->order['owner']['ot_house_nature'];?>
                    </td>
                </tr>
                
                <tr>
                    <td width="33%" height="30px"><em style="font-weight:bold;">房屋面积 ：</em><?php echo $this->order['owner']['ot_house_acreage'];?> 平方米</td>
                    <td width="33%"><em style="font-weight:bold;">目前市价：</em><?php echo $this->order['owner']['ot_house_price'];?>万元</td>
                    <td>
                        <em style="font-weight:bold;">房贷金额：</em> <?php echo $this->order['owner']['ot_house_loan'];?>万元
                    </td>
                </tr>
                
                <tr>
                    <td width="33%" height="30px"><em style="font-weight:bold;">年限 ：</em><?php echo $this->order['owner']['ot_house_loyear'];?>月</td>
                    <td width="33%"><em style="font-weight:bold;">月还款：</em><?php echo $this->order['owner']['ot_house_refundmo'];?>元</td>
                    <td><em style="font-weight:bold;">公司名：</em><?php echo $this->order['owner']['ot_company'];?></td>
                </tr>
                
                <tr>
                    <td width="33%" height="30px"><em style="font-weight:bold;">单位地址：</em><?php echo $this->order['owner']['ot_company_add'];?></td>
                    <td width="33%"><em style="font-weight:bold;">单位电话：</em><?php echo $this->order['owner']['ot_company_tel'];?></td>
                    <td><em style="font-weight:bold;">单位类型：</em><?php echo $this->order['owner']['ot_company_type'];?></td>
                </tr>
                <tr>
                    <td width="33%" height="30px"><em style="font-weight:bold;">职务类型：</em><?php echo $this->order['owner']['ot_duty_type'];?></td>
                    <td width="33%"><em style="font-weight:bold;">职务：</em><?php echo $this->order['owner']['ot_duty'];?></td>
                    <td><em style="font-weight:bold;">经营期限：</em><?php echo $this->order['owner']['ot_operat_period'];?></td>
                </tr>
                <tr>
                    <td width="33%" height="30px"><em style="font-weight:bold;">工龄：</em><?php echo $this->order['owner']['ot_seniority'];?></td>
                    <td width="33%"><em style="font-weight:bold;">所占股份：</em><?php echo $this->order['owner']['ot_stake'];?>％</td>
                    <td><em style="font-weight:bold;">月收入：</em> <?php echo $this->order['owner']['ot_income_month'];?> 元</td>
                </tr>
                <tr>
                    <td colspan="3"height="30px"><em style="font-weight:bold;">征信结果：</em> <?php echo $this->order['buyer']['ct_remark'];?>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<?php echo date('Y-m-d H:i:s',$this->order['buyer']['ct_querytime']);?></td>
                </tr>
                
            </table>
            <script type="text/javascript">
                $(document).ready(function(e) {
                    var mobile = '<?php echo $this->order['owner']['ot_mobile'];?>';
                    if(mobile !=''){
                        $.post('/public/ajax/option/mobile_area/',{'mobile':mobile},function(data){
                            if(data['success']){
                                $(".J-mobile-guishu").html(data['msg']);	
                            }else{
                                Ext.Msg.alert('提示','获取失败！');	
                            }
                            
                        },'json');
                    }	
                });
            </script>
		</fieldset>
    </div>

    <div class="daish-jbzl-box" style="border:0;">
    	<fieldset style="border:1px solid #a8a8a8; padding:10px 15px;">
        	<legend style="padding:5px 15px;"><h2>紧急联系人</h2></legend>
            <table width="100%" cellpadding="0" cellspacing="0" border="0">
                <?php 
                    if(!empty($this->order['owner']['ot_contact'])) foreach($this->order['owner']['ot_contact'] as $k => $v){
                ?>
                <tr>
                    <td width="150" height="30px"><em style="font-weight:bold;">姓名：</em><?php echo $v['name'];?></td>
                    <td width="300"><em style="font-weight:bold;">手机号：</em><?php echo $v['mobile'];?></td>
                    <td><em style="font-weight:bold;">关系：</em><?php echo $v['relation'];?></td>
                </tr>
                <?php
                    }
                ?>
                <tr>
                    <td height="30px"><em style="font-weight:bold;">备注：</em><?php echo $this->order['owner']['ot_remark'];?></td>
                    <td></td>
                    <td></td>
                </tr>
            </table>
        </fieldset>
    </div>
    <?php if(!empty($this->order['spouse'])){?>
    <div class="daish-jbzl-box" style="border:0;">
    	<fieldset style="border:1px solid #a8a8a8; padding:10px 15px;">
        	<legend style="padding:5px 15px;"><h2>配偶信息</h2></legend>
            <table width="100%" cellpadding="0" cellspacing="0" border="0">
                <tr>
                    <td width="33%" height="30px"><em style="font-weight:bold;">配偶姓名：</em><?php echo $this->order['spouse']['ct_name'];?></td>
                    <td width="33%" height="30px"><em style="font-weight:bold;">性别：</em><?php echo $this->order['spouse']['ct_sex'];?></td>
                    <td height="30px"><em style="font-weight:bold;">年龄：</em><?php echo $this->order['spouse']['list_age'];?></td>
                </tr>
                <tr>
                    <td width="33%" height="30px"><em style="font-weight:bold;">身份证号：</em><?php echo $this->order['spouse']['ct_code'];?></td>
                    <td width="33%" height="30px"><em style="font-weight:bold;">身份证地址：</em><?php echo $this->order['spouse']['ct_idaddress'];?></td>
                    <td height="30px"><em style="font-weight:bold;">身份证归属地：</em><?php echo $this->order['spouse']['ct_affiliation'];?></td>
                </tr>
                <tr>
                    <td width="33%" height="30px"><em style="font-weight:bold;">户籍：</em><?php echo $this->order['spouse']['ct_detail']['ct_spouse_province'];?><?php echo $this->order['spouse']['ct_detail']['ct_spouse_city'];?><?php echo $this->order['spouse']['ct_detail']['ct_spouse_area'];?></td>
                    <td width="33%" height="30px"><em style="font-weight:bold;">学历：</em><?php echo $this->order['spouse']['ct_detail']['ct_spouse_degree'];?></td>
                    <td height="30px">
                        <em style="font-weight:bold;">手机号：</em><?php echo $this->order['spouse']['ct_detail']['ct_spouse_mobile'];?>
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <em class="J-spouse-mobile"></em>
                    </td>
                </tr>
                <script type="text/javascript">
                    $(document).ready(function(e) {
                        var spouseMobile = '<?php echo $this->order['spouse']['ct_detail']['ct_spouse_mobile'];?>';
                        if(spouseMobile !=''){
                            $.post('/public/ajax/option/mobile_area/',{'mobile':spouseMobile},function(data){
                                if(data['success']){
                                    $(".J-spouse-mobile").html(data['msg']);	
                                }else{
                                    Ext.Msg.alert('提示','获取失败！');	
                                }
                                
                            },'json');
                        }	
                    });
                </script>
                <tr>
                    <td width="33%" height="30px"><em style="font-weight:bold;">邮寄地址：</em><?php echo $this->order['spouse']['ct_detail']['ct_spouse_liveadd'];?></td>
                    <td width="33%" height="30px"><em style="font-weight:bold;">固定电话：</em><?php echo $this->order['spouse']['ct_detail']['ct_spouse_tel'];?></td>
                    <td height="30px"><em style="font-weight:bold;">公司名：</em><?php echo $this->order['spouse']['ct_detail']['ct_spouse_company'];?></td>
                </tr>
                <tr>
                    <td width="33%" height="30px"><em style="font-weight:bold;">单位地址：</em><?php echo $this->order['spouse']['ct_detail']['ct_spouse_cadd'];?></td>
                    <td width="33%" height="30px"><em style="font-weight:bold;">单位电话：</em><?php echo $this->order['spouse']['ct_detail']['ct_spouse_ctel'];?></td>
                    <td height="30px"><em style="font-weight:bold;">单位类型：</em><?php echo $this->order['spouse']['ct_detail']['ct_spouse_ctype'];?></td>
                </tr>
                <tr>
                    <td width="33%" height="30px"><em style="font-weight:bold;">职务类型：</em><?php echo $this->order['spouse']['ct_detail']['ct_spouse_dutytp'];?></td>
                    <td width="33%" height="30px"><em style="font-weight:bold;">职务：</em><?php echo $this->order['spouse']['ct_detail']['ct_spouse_duty'];?></td>
                    <td height="30px"><em style="font-weight:bold;">经营期限：</em><?php echo $this->order['spouse']['ct_detail']['ct_spouse_operatpd'];?></td>
                </tr>
                <tr>
                    <td width="33%" height="30px"><em style="font-weight:bold;">月收入：</em> <?php echo $this->order['spouse']['ct_detail']['ct_spouse_mincome'];?> 元</td>
                    <td width="33%" height="30px"><em style="font-weight:bold;">备注：</em><?php echo trim($this->order['spouse']['ct_detail']['ct_spouse_remark']);?></td>
                    <td height="30px"><em style="font-weight:bold;">征信结果：</em><?php echo $this->order['spouse']['ct_detail']['ct_remark'];?>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<?php echo date('Y-m-d H:i:s',$this->order['spouse']['ct_querytime']);?></td>
                </tr>
            </table>
    	</fieldset>
    </div>
    <?php
	}
	?>
    <script type="text/javascript">
		$(document).ready(function(e) {
			$(".J-guar-mobile").each(function(index, element) {
                (function(element){
					var guarMobile = $(element).data('mobile');
					var $that = $(element);
					if(guarMobile !=''){
						$.post('/public/ajax/option/mobile_area/',{'mobile':guarMobile},function(data){
							if(data['success']){
								$that.html(data['msg']);	
							}
						},'json');	
					}	
				})(element);
            });
		});
	</script>
    <?php
    	if(!empty($this->order['guarantor'])) foreach($this->order['guarantor'] as $key => $val){
	?>
    <div class="daish-jbzl-box" style="border:0;">
    	<fieldset style="border:1px solid #a8a8a8; padding:10px 15px;">
        	<legend style="padding:5px 15px;"><h2>担保人信息(<?php echo $val['ct_guarantor_type'];?>)</h2></legend>
            <table width="100%" cellpadding="0" cellspacing="0" border="0">
                <tr>
                    <td width="33%" height="30px"><em style="font-weight:bold;">担保人姓名：</em><?php echo $val['ct_name'];?></td>
                    <td width="33%" height="30px"><em style="font-weight:bold;">性别：</em><?php echo $val['ct_sex'];?></td>
                    <td height="30px"><em style="font-weight:bold;">年龄：</em><?php echo $val['list_age'];?></td>
                </tr>
                <tr>
                    <td width="33%" height="30px"><em style="font-weight:bold;">身份证号：</em><?php echo $val['ct_code'];?></td>
                    <td width="33%" height="30px"><em style="font-weight:bold;">身份证地址：</em><?php echo $val['ct_idaddress'];?></td>
                    <td height="30px"><em style="font-weight:bold;">身份证归属地：</em><?php echo $val['ct_affiliation'];?></td>
                </tr>
                <tr>
                    <td width="33%" height="30px"><em style="font-weight:bold;">户籍：</em><?php echo $val['ct_detail']['ct_guarantor_province'];?><?php echo $val['ct_detail']['ct_guarantor_city'];?><?php echo $val['ct_detail']['ct_guarantor_area'];?></td>
                    <td width="33%" height="30px"><em style="font-weight:bold;">学历：</em><?php echo $val['ct_detail']['ct_guarantor_degree'];?></td>
                    <td height="30px">
                        <em style="font-weight:bold;">手机号：</em><?php echo $val['ct_detail']['ct_guarantor_mobile'];?>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <em class="J-guar-mobile" data-mobile="<?php echo $val['ct_detail']['ct_guarantor_mobile'];?>"></em>
                    </td>
                </tr>
                <tr>
                    <td width="33%" height="30px"><em style="font-weight:bold;">邮寄地址：</em><?php echo $val['ct_detail']['ct_guarantor_liveadd'];?></td>
                    <td width="33%" height="30px"><em style="font-weight:bold;">固定电话：</em><?php echo $val['ct_detail']['ct_guarantor_tel'];?></td>
                    <td height="30px"><em style="font-weight:bold;">实际家庭地址：</em><?php echo $val['ct_detail']['ct_guarantor_hadd'];?></td>
                </tr>
                <tr>
                    <td width="33%" height="30px"><em style="font-weight:bold;">房产地址：</em><?php echo $val['ct_detail']['ct_guarantor_headd'];?></td>
                    <td width="33%" height="30px"><em style="font-weight:bold;">房产所有权人：</em><?php echo $val['ct_detail']['ct_guarantor_howner'];?></td>
                    <td height="30px"><em style="font-weight:bold;">与购车人关系：</em><?php echo $val['ct_detail']['ct_guarantor_hrelation'];?></td>
                </tr>
                <tr>
                    <td width="33%" height="30px"><em style="font-weight:bold;">房产性质：</em><?php echo $val['ct_detail']['ct_guarantor_hnature'];?></td>
                    <td width="33%" height="30px"><em style="font-weight:bold;">房屋面积：</em><?php echo $val['ct_detail']['ct_guarantor_hacreage'];?></td>
                    <td height="30px"><em style="font-weight:bold;">目前市价：</em><?php echo $val['ct_detail']['ct_guarantor_hprice'];?></td>
                </tr>
                <tr>
                    <td width="33%" height="30px"><em style="font-weight:bold;">房贷金额：</em><?php echo $val['ct_detail']['ct_guarantor_hloan'];?></td>
                    <td width="33%" height="30px"><em style="font-weight:bold;">年限：</em><?php echo $val['ct_detail']['ct_guarantor_hloyear'];?></td>
                    <td height="30px"><em style="font-weight:bold;">月还款：</em><?php echo $val['ct_detail']['ct_guarantor_hrefundmo'];?></td>
                </tr>
                <tr>
                    <td width="33%" height="30px"><em style="font-weight:bold;">公司名：</em><?php echo $val['ct_detail']['ct_guarantor_company'];?></td>
                    <td width="33%" height="30px"><em style="font-weight:bold;">单位地址：</em><?php echo $val['ct_detail']['ct_guarantor_cadd'];?></td>
                    <td height="30px"><em style="font-weight:bold;">单位电话：</em><?php echo $val['ct_detail']['ct_guarantor_ctel'];?></td>
                </tr>
                <tr>
                    <td width="33%" height="30px"><em style="font-weight:bold;">单位类型：</em><?php echo $val['ct_detail']['ct_guarantor_ctype'];?></td>
                    <td width="33%" height="30px"><em style="font-weight:bold;">职务类型：</em><?php echo $val['ct_detail']['ct_guarantor_dutytp'];?></td>
                    <td height="30px"><em style="font-weight:bold;">职务：</em><?php echo $val['ct_detail']['ct_guarantor_duty'];?></td>
                </tr>
                <tr>
                    <td width="33%" height="30px"><em style="font-weight:bold;">经营期限：</em><?php echo $val['ct_detail']['ct_guarantor_operatpd'];?></td>
                    <td width="33%" height="30px"><em style="font-weight:bold;">工龄：</em><?php echo $val['ct_detail']['ct_guarantor_seniority'];?></td>
                    <td height="30px"><em style="font-weight:bold;">所占股份：</em><?php echo $val['ct_detail']['ct_guarantor_stake'];?>%</td>
                </tr>
                <tr>
                    <td width="33%" height="30px"><em style="font-weight:bold;">月收入：</em> <?php echo $val['ct_detail']['ct_guarantor_mincome'];?> 元</td>
                    <td width="33%" height="30px"><em style="font-weight:bold;">备注：</em><?php echo $val['ct_detail']['ct_guarantor_remark'];?></td>
                    <td height="30px"><em style="font-weight:bold;">征信结果：</em><?php echo $val['ct_remark'];?>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<?php echo date('Y-m-d H:i:s',$val['ct_querytime']);?></td>
                </tr>
            </table>
        </fieldset>
    </div>
    <?php
		}
	?>
   <div class="daish-jbzl-box" style="border:0;">
   		<fieldset style="border:1px solid #a8a8a8; padding:10px 15px;">
        	<legend style="padding:5px 15px;"><h2>车辆信息</h2></legend>
           <table width="100%" cellpadding="0" cellspacing="0" border="0">
           		<tr>
                    <td height="30px" colspan="2">
                        <em style="font-weight:bold;">车辆类型：</em><?php echo $this->order['car']['ot_car_type'];?>&nbsp;&nbsp;<?php echo $this->order['car']['ot_car_model'];?>&nbsp;&nbsp;<?php echo $this->order['car']['ot_car_fullmodel'];?> &nbsp;<?php echo $this->order['car']['ot_car_seating'].'座';?>  
                    </td>
                    <td width="23%">
                        <em style="font-weight:bold;">车型构成：</em><?php echo $this->order['car']['ot_car_pose'];?>
                    </td>
                    <td width="23%">
                        <span class="<?php echo $this->order['car']['ot_car_pose'] == '二手车' ? '' : 'fn-hide';?> J-ot-sinocap">
                            <em style="font-weight:bold;">评&nbsp;&nbsp;估&nbsp;价：</em><?php echo $this->order['car']['ot_assessment'];?>
                        </span>
                    </td>
                </tr>
                
                <tr>
                    <td height="30px" width="31%">
                        <em style="font-weight:bold;">上&nbsp;&nbsp;牌&nbsp;地：</em><?php echo $this->order['car']['ot_reg_province'];?><?php echo $this->order['car']['ot_reg_city'];?><?php echo $this->order['car']['ot_reg_area'];?>
                    </td>
                    <td width="23%">
                        <em style="font-weight:bold;">是否公牌：</em>
                        <?php echo $this->order['car']['ot_pubbrand'];?>              
                    </td>
                    <td width="23%">
                        <em style="font-weight:bold;">行驶证车主：</em><?php echo $this->order['car']['ot_car_owners'];?>
                    </td>
                    <td width="23%">
                        <em style="font-weight:bold;">产品编号：</em><?php echo $this->order['car']['ot_bankrt_code'];?>
                    </td>
                </tr>
                <tr>
                    <td height="30px" width="31%">
                        <em style="font-weight:bold;">贷款银行：</em><?php echo $this->order['base']['o_bank'];?>
                    </td>
                    <td width="23%">
                        <em style="font-weight:bold;">贷款年限：</em>
                        <?php echo $this->order['car']['ot_loan_year'];?>
                    </td>
                    <td width="23%">
                        <em style="font-weight:bold;">产品类型：</em><?php echo $this->order['car']['ot_loan_type'];?>
                    </td>
                    <td width="23%">
                        <em style="font-weight:bold;">银行利率：</em><?php echo $this->order['car']['ot_calculated']['bank_rate'] * 100;?>%
                    </td>
                </tr>
                
                <tr>
                    <td height="30px" width="31%">
                        <em style="font-weight:bold;">车　　价：</em><?php echo $this->order['car']['ot_car_price'];?>
                    </td>
                    <td width="23%">
                        <?php if($this->order['base']['o_bank']=='中国农业银行股份有限公司萧山分行'){?>
                        <em style="font-weight:bold;">其他费用：</em>
                        <?php echo $this->order['car']['ot_car_oprice'];?>元<?php }else{?>
                        <em style="font-weight:bold;">贷&nbsp;&nbsp;款&nbsp;额：</em>
                        <?php echo $this->order['car']['ot_loan_limit'];?>元
                        <?php }?>
                    </td>
                    <td width="23%">
                        <?php if($this->order['base']['o_bank']=='中国农业银行股份有限公司萧山分行'){?>
                        <em style="font-weight:bold;">贷&nbsp;&nbsp;款&nbsp;额：</em>
                        <?php echo $this->order['car']['ot_loan_limit'];?>元
						<?php }else{?>					
                        <em style="font-weight:bold;">公司费率：</em>
                        <?php echo $this->order['car']['ot_loan_rate'];?>%
                        <?php }?>
                    </td>
                    <td width="23%">
                        <?php if($this->order['base']['o_bank']=='（2017）中国工商银行股份有限公司杭州延中支行'){?>
                        <em style="font-weight:bold;">服务费率:</em>
                        <?php echo $this->order['car']['ot_service_rate'];?>%
                        <?php }else if($this->order['base']['o_bank']=='中国农业银行股份有限公司萧山分行'){?>
                        <em style="font-weight:bold;">公司费率：</em>
                        <?php echo $this->order['car']['ot_loan_rate'];?>%
                        <?php }?>
                    </td>
                </tr>
                
                <tr>
                    <td height="30px" width="31%">
                        <em style="font-weight:bold;">实际首付款（元）：</em>
                        <span><?php echo $this->order['car']['ot_calculated']['d_payment'];?></span>
                    </td>
                    <td width="23%">
                        <em style="font-weight:bold;">实际贷款比例（％）：</em>
                        <span><?php echo $this->order['car']['ot_calculated']['d_loan_per'];?></span>
                    </td>
                    <td width="23%">
                        <em style="font-weight:bold;">分期手续费（元）：</em>
                        <span><?php echo $this->order['car']['ot_calculated']['d_aging_poundage'];?></span>
                    </td>
                    <td width="23%">
                        <?php if($this->order['base']['o_bank']=='（2017）中国工商银行股份有限公司杭州延中支行'){?>
                            <em style="font-weight:bold;">金融服务费（元）：</em>
                            <span class="J-d-service-money"><?php echo $this->order['car']['ot_calculated']['d_service_money'];?></span>
                        <?php }?>
                    </td>
                </tr>
                <tr>
                    <td height="35px">
                        <em style="font-weight:bold;">分期付款总额（元）：</em>
                        <span class="J-d-aging-money"><?php echo $this->order['car']['ot_calculated']['d_aging_money'];?></span>
                        
                    </td>
                    <td>
                        <em style="font-weight:bold;">分期付款比例（％）：</em>
                        <span class="J-d-aging-per"><?php echo $this->order['car']['ot_calculated']['d_aging_per'];?></span>
                        
                    </td>
                    <td>
                    </td>
                    <td>
                    <?php if($this->order['base']['o_bank']=='（2017）中国工商银行股份有限公司杭州延中支行'){?>
                        <em style="font-weight:bold;">金融服务费比例（％）：</em>
                        <span class="J-d-service-per"><?php echo $this->order['car']['ot_calculated']['d_service_per'];?></span>
                        
                    <?php }?>
                    </td>
                </tr> 
                <tr>
                    <td height="35px">
                        <em style="font-weight:bold;">申请分期付款总额（元）：</em>
                        <span class="J-d-signag-money"><?php echo $this->order['car']['ot_calculated']['d_signag_money'];?></span>
                        
                    </td>
                    <td>
                        <em style="font-weight:bold;">申请分期付款比例（％）：</em>
                        <span class="J-d-aging-moneyper"><?php echo $this->order['car']['ot_calculated']['d_aging_moneyper'];?></span>
                        
                    </td>
                    <td>
                        <em style="font-weight:bold;">首期还款额（元）：</em>
                        <span class="J-d-refund-1month"><?php echo $this->order['car']['ot_calculated']['d_refund_1month'];?></span>
                        
                    </td>
                    <td>
                        <em style="font-weight:bold;">月还款额（元）：</em>
                        <span class="J-d-refund-month"><?php echo $this->order['car']['ot_calculated']['d_refund_month'];?></span>
                        
                    </td>
                </tr>
                <tr>
                    <td colspan="4" valign="top">
                        <em style="font-weight:bold;">备注：</em><span><?php echo $this->order['car']['ot_loan_remark'];?></span>
                    </td>
                </tr>
                
              
           </table>
           
        </fieldset>
    </div>
    <div class="daish-jbzl-box" style="border:0;">
    	<fieldset style="border:1px solid #a8a8a8; padding:10px 15px;">
        	<legend style="padding:5px 15px;"><h2>面签信息</h2><a href='\\192.168.99.7\credit\<?php echo $this->order['base']['o_number'];?>' target='_blank'>\\192.168.99.7\credit\<?php echo $this->order['base']['o_number'];?></a></legend>
            <dl class="daish-mqxx">
                <dt><em style="font-weight:bold;">证件照</em></dt>
                <dd id="J-box-order-cert">
                    <?php if(!empty($this->order['attachment']['oa_cert'])) foreach($this->order['attachment']['oa_cert'] as $k=>$v){?>
                    <img data-original="<?php echo $this->order['attachment']['oa_cert_url'][$k];?>" class="example-image" src="<?php echo $this->order['attachment']['oa_cert_thurl'][$k];?>" width="80" height="80" />
                    <?php
                    }
                    ?>
                    
                </dd>
            </dl>
            
            <dl class="daish-mqxx">
                <dt><em style="font-weight:bold;">资产类照片</em></dt>
                <dd id="J-box-order-assets">
                    <?php if(!empty($this->order['attachment']['oa_assets'])) foreach($this->order['attachment']['oa_assets'] as $k=>$v){?>
                    <img data-original="<?php echo $this->order['attachment']['oa_assets_url'][$k];?>" class="example-image" src="<?php echo $this->order['attachment']['oa_assets_thurl'][$k];?>" width="80" height="80" />
                    <?php
                    }
                    ?>
                </dd>
            </dl>
            <dl class="daish-mqxx">
                <dt><em style="font-weight:bold;">家访照</em></dt>
                <dd id="J-box-order-family">
                    <?php if(!empty($this->order['attachment']['oa_family'])) foreach($this->order['attachment']['oa_family'] as $k=>$v){?>
                    <img data-original="<?php echo $this->order['attachment']['oa_family_url'][$k];?>" class="example-image" src="<?php echo $this->order['attachment']['oa_family_thurl'][$k];?>" width="80" height="80" />
                    <?php
                    }
                    ?>
                    
                </dd>
            </dl>
            <dl class="daish-mqxx">
                <dt><em style="font-weight:bold;">签字照</em></dt>
                <dd id="J-box-order-sign">
                    <?php if(!empty($this->order['attachment']['oa_sign'])) foreach($this->order['attachment']['oa_sign'] as $k=>$v){?>
                    <img data-original="<?php echo $this->order['attachment']['oa_sign_url'][$k];?>"  class="example-image" src="<?php echo $this->order['attachment']['oa_sign_thurl'][$k];?>" width="80" height="80" />
                    <?php
                    }
                    ?>
                </dd>
            </dl>
            <dl class="daish-mqxx J-daish-video">
                <dt><em style="font-weight:bold;">视频类</em></dt>
                <dd>
                    <?php if(!empty($this->order['attachment']['oa_video'])) foreach($this->order['attachment']['oa_video'] as $k=>$v){?>
                    <img class="J-video-obj" data-url="<?php echo $this->order['attachment']['oa_video_url'][$k];?>" src="<?php echo BASE_STYLE;?>/images/member/default_sildeshow.gif" width="80" height="80" />
                    <?php
                    }
                    ?>
                </dd>
            </dl>
            
            <?php
                switch($this->order['base']['o_pre_mode']){
                    case 2:
            ?>
                        <dl class="daish-mqxx">
                            <dt><em style="font-weight:bold;">流水类</em></dt>
                            <dd id="J-box-order-flowing">
                                <?php if(!empty($this->order['attachment']['oa_flowing'])) foreach($this->order['attachment']['oa_flowing'] as $k=>$v){?>
                                <img data-original="<?php echo $this->order['attachment']['oa_flowing_url'][$k];?>" class="example-image" src="<?php echo $this->order['attachment']['oa_flowing_url'][$k];?>" width="80" height="80" />
                                <?php
                                }
                                ?>
                            </dd>
                        </dl>
                        <dl class="daish-mqxx">
                            <dt><em style="font-weight:bold;">其他资料</em></dt>
                            <dd id="J-box-order-other">
                                <?php if(!empty($this->order['attachment']['oa_other'])) foreach($this->order['attachment']['oa_other'] as $k=>$v){?>
                                <img data-original="<?php echo $this->order['attachment']['oa_other_url'][$k];?>"  class="example-image" src="<?php echo $this->order['attachment']['oa_other_thurl'][$k];?>" width="80" height="80" />
                                <?php
                                }
                                ?>
                            </dd>
                        </dl>
            <?php
                        break;
                    case 3:	
            ?>
                        <dl class="daish-mqxx">
                            <dt><em style="font-weight:bold;">流水类</em></dt>
                            <dd id="J-box-order-flowing">
                                <?php if(!empty($this->order['attachment']['oa_flowing'])) foreach($this->order['attachment']['oa_flowing'] as $k=>$v){?>
                                <img data-original="<?php echo $this->order['attachment']['oa_flowing_url'][$k];?>" class="example-image" src="<?php echo $this->order['attachment']['oa_flowing_thurl'][$k];?>" width="80" height="80" />
                                <?php
                                }
                                ?>
                            </dd>
                        </dl>
                        <dl class="daish-mqxx">
                            <dt><em style="font-weight:bold;">其他资料</em></dt>
                            <dd id="J-box-order-other">
                                <?php if(!empty($this->order['attachment']['oa_other'])) foreach($this->order['attachment']['oa_other'] as $k=>$v){?>
                                <img data-original="<?php echo $this->order['attachment']['oa_other_url'][$k];?>"  class="example-image" src="<?php echo $this->order['attachment']['oa_other_thurl'][$k];?>" width="80" height="80" />
                                <?php
                                }
                                ?>
                            </dd>
                        </dl>
                        <dl class="daish-mqxx">
                            <dt><em style="font-weight:bold;">合同照</em></dt>
                            <dd id="J-box-order-contract">
                                <?php if(!empty($this->order['attachment']['oa_contract'])) foreach($this->order['attachment']['oa_contract'] as $k=>$v){?>
                                <img data-original="<?php echo $this->order['attachment']['oa_contract_url'][$k];?>" class="example-image" src="<?php echo $this->order['attachment']['oa_contract_thurl'][$k];?>" width="80" height="80" />
                                <?php
                                }
                                ?>
                            </dd>
                        </dl>
                        <dl class="daish-mqxx">
                            <dt><em style="font-weight:bold;">卡单照片</em></dt>
                            <dd id="J-singlecard">
                    <?php if(!empty($this->order['attachment']['oa_singlecard'])) foreach($this->order['attachment']['oa_singlecard'] as $k=>$v){?>
                        <img data-original="<?php echo $this->order['attachment']['oa_singlecard_url'][$k];?>" style="position:relative; display:inline-block; width:80px;height:80px;margin-right:10px;"
                            class="example-image" src="<?php echo $this->order['attachment']['oa_singlecard_thurl'][$k];?>" width="80" height="80" />
                    
                    <?php
                    }
                    ?>
            </dl>
            <?php
                        break;
                }
            ?>
            
            
            <dl class="daish-mqxx">
                <dt><em style="font-weight:bold;">物流单号：</em><?php echo $this->order['express']['ls_express_no'];?></dt>
                <dd id="J-express">
                    <?php if(!empty($this->order['express']['ls_express_image_url'])) foreach($this->order['express']['ls_express_image_url'] as $k=>$v){?>
                    <img data-original="<?php echo $v;?>" class="example-image" src="<?php echo $v;?>" width="80" height="80" />
                    <?php
                    }
                    ?>
                </dd>
            </dl>
        </fieldset>
    </div>

    
    <div class="order-item-box" style="border:0;" id="result">
        <fieldset style="border:1px solid #a8a8a8; padding:10px 15px;">
        	<legend style="padding:5px 15px;"><h2>初审意见</h2></legend>
            <table width="100%" cellpadding="0" cellspacing="0" border="0">
                <tr>
                    <td height="35px" width="73px">
                        初审结果：
                    </td>
                    <td>
                        <select name="a_results">
                            <option value="可以办理"<?php echo $this->order['audit_draft']['a_results'] == '通过' ? ' selected="selected"' : '';?>>可以办理</option>
                            <option value="不予办理"<?php echo $this->order['audit_draft']['a_results'] == '退单' ? ' selected="selected"' : '';?>>不予办理</option>
                        </select>
                    </td>
                </tr>
                <tr>
                    <td height="35px" width="73px">
                        需付押金：
                    </td>
                    <td>
                        <input type="text" style="width:145px" name="a_amount_paid" value="<?php echo $this->order['base']['o_deposit'];?>"/>
                    </td>
                </tr>  
                <tr>
                <tr>
                    <td height="70px">
                        押金备注:
                    </td>
                    <td>
                        <textarea name="a_deposit_remarks" style="width:550px; height:55px; background:none; resize:none; vertical-align:text-top;"><?php echo $this->order['base']['o_deposit_remarks'];?></textarea>
                    </td>
                </tr>
                    <td height="70px">
                        初审详情:
                    </td>
                    <td>
                        <textarea name="a_details" style="width:550px; height:55px; background:none; resize:none; vertical-align:text-top;"><?php echo $this->order['audit_draft']['a_details'];?></textarea>
                    </td>
                </tr>
                <tr>
                    <td height="70px">
                        初审备注:
                    </td>
                    <td>
                        <textarea name="a_remarks" style="width:550px; height:55px; background:none; resize:none; vertical-align:text-top;"><?php echo $this->order['audit_draft']['a_remarks'];?></textarea>
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        审 核 人：&nbsp;&nbsp;&nbsp;&nbsp;
                        <input type="text" value="<?php echo $this->member_info['u_realname'];?>" name="a_uname" readonly />&nbsp;&nbsp;&nbsp;&nbsp;
                        审核时间：
                        <input type="text" value="<?php echo date('Y-m-d',time());?>" name="a_dateline" readonly />
                    </td>
                </tr>
    
            </table>
        </fieldset>
    </div>
    
    
    
    <div class="luru-box-btn mt30" style="position:fixed; bottom:0; width:100%; left:0; background:#FFF; text-align:right; padding:10px 20px; box-sizing:border-box; -webkit-box-sizing:border-box; -moz-box-sizing:border-box;">
        <?php if($this->order['base']['o_trial_status'] == '已通过'){ echo '资审已通过'; }else{ ?>
            <input type="hidden" name="oid" value="<?php echo $this->order['base']['o_id'];?>" />
            <input type="hidden" name="savetype" value="draft" />
            <a href="javascript:;" class="a-btn-close J-tuihui fn-right mr15">初审退回</a>
            <a href="javascript:;" class="a-btn-close J-qianchu fn-right mr15">初审签出</a>
            <a href="javascript:;" class="a-btn-close fn-left mr15" onclick="javascript:document.getElementById('result').scrollIntoView()">押金</a>
           <?php if($this->order['base']['o_trial_status'] != '暂停中') echo '<a href="javascript:;" class="a-btn-close J-suspend fn-right mr15">初审暂停</a>';?>
            <input type="submit" class="a-btn-close mr15 J-a-submit" value="仅保存" />
            <input type="submit" class="a-btn-close mr15 J-a-btn-submit" value="初审审核" />
        <?php } ?>
    </div>
</form>   
</div>
<script type="text/javascript">
$(document).ready(function(e) {
    $(".J-suspend").on('click',function(){
    var oid = $('input[name="oid"]').val();
    popItem(oid);
    });
});
function popItem(oid){
    var suspendHtml ='<iframe width="100%" height="100%" id="suspend_item" name="suspend_item" src="/order/ftoaudit/option/suspend?oid='+oid+'" frameborder="0"></iframe>';
    var win = new Ext.Window({
            title:'初审暂停',
            closeable:true,
            closeAction:'hide',
            modal:true,
            width:600,
            height:300,
            resizable:false,
            plain:true,
            layout:'fit',
            html:suspendHtml
        });
        
    win.show(this); 
}

var viewerCert = new Viewer(document.getElementById('J-box-order-cert'),{
    url:"data-original",
    show:function(){
        viewerCert.update();    
    }   
});
var viewerAssets = new Viewer(document.getElementById('J-box-order-assets'),{
    url:"data-original",
    show:function(){
        viewerAssets.update();  
    }   
}); 

var viewerFamily = new Viewer(document.getElementById('J-box-order-family'),{
    url:"data-original",
    show:function(){
        viewerFamily.update();      
    }   
});
var viewerSign = new Viewer(document.getElementById('J-box-order-sign'),{
    url:"data-original",
    show:function(){
        viewerSign.update();    
    }   
});
var viewerFlowing = new Viewer(document.getElementById('J-box-order-flowing'),{
    url:"data-original",
    show:function(){
        viewerFlowing.update();     
    }   
});
var viewerOther = new Viewer(document.getElementById('J-box-order-other'),{
    url:"data-original",
    show:function(){
        viewerOther.update();   
    }   
});
var viewerContract = new Viewer(document.getElementById('J-box-order-contract'),{
    url:"data-original",
    show:function(){
        viewerContract.update();    
    }   
});

var viewerExpress = new Viewer(document.getElementById('J-express'),{
    url:"data-original",
    show:function(){
        viewerExpress.update();     
    }   
});

var viewerSinglecard = new Viewer(document.getElementById('J-singlecard'),{
    url:"data-original",
    show:function(){
        viewerSinglecard.update();     
    }   
});
if(document.getElementById('glideDiv0')){
            var viewerSignimage = new Viewer(document.getElementById('glideDiv0') , {
                url:"data-original",
                show:function(){
                    viewerSignimage.update();    
                }
            });
        }
</script>
<style type="text/css">
	.mianqianxinxi-box {
		height:auto;
		overflow:hidden;
		margin-top:15px;
	}
	
	.mianqianxinxi-box dt {
		margin-bottom:10px;
	}
	.mianqianxinxi-box dd {
		float:left;
	}
	
	.mianqianxinxi-pic-list {
		margin-right:10px;
	}
	
	.mianqianxinxi-pic-list img {
		margin-right:10px;
	}
	
	
</style>
<?php include $this->Render('footer.php'); die();?>